import { service } from '@/common/tools/luch-request/index.js';

//反馈故障
export function addMalfunctionInfo(data) {
    return service.request({
        url: '/applet/Malfunction/addMalfunctionInfo',
        method: 'post',
         data
    })
}

//查询广告栏图片数组
export function getAdvertising(data) {
    return service.request({
        url: '/applet/Advertising/getAdvertising',
        method: 'post',
        data,
	    noAuth: true
    })
}

//图片上传
export function uploadWechatFile(data) {
    return service.request({
        url: '/applet/Upload/uploadWechatFile',
        method: 'post',
         data
    })
}

//异步查询活动信息以及优惠券信息
export function getDiscountCouponActivityInfo(data) {
    return service.request({
        url: '/applet/DiscountCouponActivity/getDiscountCouponActivityInfo',
        method: 'post',
        data
    })
}

//查询活动信息列表
export function getDiscountCouponActivityInfoList(params) {
    return service.request({
        url: '/applet/DiscountCouponActivity/getDiscountCouponActivityInfoList',
        method: 'get',
        params,
		noAuth: true
    })
}

//活动页面领取优惠券
export function getDiscountCoupon(data) {
    return service.request({
        url: '/applet/DiscountCouponActivity/getDiscountCoupon',
        method: 'post',
        data
    })
}

//查询用户的优惠券信息列表
export function getWechatUserDiscountCouponInfoList(params) {
    return service.request({
        url: '/applet/DiscountCoupon/getWechatUserDiscountCouponInfoList',
        method: 'get',
        params
    })
}

//查询平台新人注册活动优惠券
export function getNewUserDiscountCoupon(params) {
    return service.request({
        url: '/applet/DiscountCoupon/getNewUserDiscountCoupon',
        method: 'get',
        params,
		noAuth: true
    })
}
